<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta http-equiv="Access-Control-Allow-Origin" content="https://apis.map.qq.com">
    <title>地址解析</title>
</head>
<body>
<div style="width: 500px;height: 500px;"></div>

<div>
    <input id="address" type="textbox" value="中国,北京,海淀区,海淀大街38号" onchange="getAddressList()">
    <button id="btn" onclick="getAddressList()">search</button>
</div>

<script src="../../js/jquery.min.js"></script>
<script src="../../js/my-js/global.js"></script>
<!--<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=T2KBZ-DENW4-DKHU5-XPLOB-RBXH5-EBBES"></script>-->
<script>
   function getAddressList(){
       var keyword = $('#address').val();
       getAjax(`${global.apiUrl}/Api/Url/ceshi`,function (res) {
           console.log(res);
       },{
           key:'T2KBZ-DENW4-DKHU5-XPLOB-RBXH5-EBBES',
           keyword:keyword,
           region:'天津'
       })
   }

</script>
</body>
</html>
